/*    */ package com.zimbra.cs.index;
/*    */ 
/*    */ import com.zimbra.common.soap.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public final class WildcardExpansionQueryInfo
/*    */   implements QueryInfo
/*    */ {
/*    */   private String mStr;
/*    */   private int mNumExpanded;
/*    */   private boolean mExpandedAll;
/*    */   
/*    */   public WildcardExpansionQueryInfo(String baseStr, int numExpanded, boolean expandedAll)
/*    */   {
/* 28 */     this.mStr = baseStr;
/* 29 */     this.mNumExpanded = numExpanded;
/* 30 */     this.mExpandedAll = expandedAll;
/*    */   }
/*    */   
/*    */   public Element toXml(Element parent)
/*    */   {
/* 35 */     Element qinfo = parent.addElement("wildcard");
/* 36 */     qinfo.addAttribute("str", this.mStr);
/* 37 */     qinfo.addAttribute("expanded", this.mExpandedAll);
/* 38 */     qinfo.addAttribute("numExpanded", this.mNumExpanded);
/* 39 */     return qinfo;
/*    */   }
/*    */   
/*    */   public String toString()
/*    */   {
/* 44 */     return "WILDCARD(" + this.mStr + "," + this.mNumExpanded + "," + (this.mExpandedAll ? "ALL" : "PARTIAL") + ")";
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/index/WildcardExpansionQueryInfo.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */